package devkit.commando {
	
	import mx.rpc.events.FaultEvent;
	import mx.rpc.events.ResultEvent;
	
	/**
	 * Interface to be implemented by all standard and custom built command classes.
	 * @author Francois Dempers 
	 */
	public interface ICommand {
		
		/**
		 * Called when a result is received from the service.
		 * @param event The result event.
		 */
		function result(event:ResultEvent):void;
		
		/**
		 * Called when a fault is received from the service.
		 * @param event The fault event.
		 */
		function fault(event:FaultEvent):void;
	}
}